/*
 *  $Id: GodlikeIllusion.cs 905 2009-11-29 11:23:25Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Light.Abilities {
    public class GodlikeIllusion: AbilityCard<Creature> {
        public GodlikeIllusion(): base("001_l_a_godlike_illusion") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Light;
            Target = CreatureTarget.Both;
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            args.Target.AddAffect<GodlikeIllusionAffect>();
        }

        private class GodlikeIllusionAffect: SpellAffect<GodlikeIllusion> {
            public GodlikeIllusionAffect() {
                Add(new Affects.Inerrancy());
                Add(new Affects.SorrowIgnore());
            }
        }
    }
}
